package com.hourse.app.service;

import com.hourse.app.entity.TickerEntity;
import com.hourse.platform.exception.AppException;
import com.hourse.platform.service.PublicService;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.util.List;

/**
 * @作者：light
 * @描述：【货币】
 * @创建：2021/12/25 20:28
 */
public interface TickerService extends PublicService {

  List<TickerEntity> allTicker(String bourseTag, String currency) throws AppException;

  void asynBatchSave(List<TickerEntity> list);

  Object headerTicker() throws AppException, CloneNotSupportedException, InvalidKeyException, UnsupportedEncodingException;

  Object selectK(String id, String type, String platform, long since, int size) throws AppException;

  Object ticker(String market, String platform) throws AppException;

  Object trades(String currency, String platform) throws AppException, IOException;
}
